package org.duang.event;

import org.duang.event.core.DuangEvent;

public class EventUtil {
	
	private static EventHandler handler;

	public static void init(EventHandler handler) {
		EventUtil.handler = handler;
	}

	/**
	 * 发布事件
	 * @param event DuangEvent
	 */
	public static void executeEvent(DuangEvent event) {
		handler.executeEvent(event);
	}
}
